package com.mrx.xfriendship.event;

import com.mrx.xfriendship.model.dto.MailDTO;
import org.springframework.context.ApplicationEvent;

/**
 * @author Mr.X
 * @since 2023-02-19 15:57
 */
public class MailEvent extends ApplicationEvent {

    public MailEvent(MailDTO source) {
        super(source);
    }

    public static MailEvent of(MailDTO mailDTO) {
        return new MailEvent(mailDTO);
    }

}
